package cn.le.dto;

import cn.le.enums.EDataType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@ApiModel(value = "产品属性")
public class PropertyDTO {
    @ApiModelProperty(value = "产品id")
    private Long productId;
    @ApiModelProperty(value = "属性名称")
    private String name;
    @ApiModelProperty(value = "标识符")
    @NotBlank
    private String identifier;
    @ApiModelProperty(value = "数据类型")
    private EDataType type;
    @ApiModelProperty(value = "偏移量")
    private String ofset;
    @ApiModelProperty(value = "单位")
    private String unit;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public EDataType getType() {
        return type;
    }

    public void setType(EDataType type) {
        this.type = type;
    }

    public String getOfset() {
        return ofset;
    }

    public void setOfset(String ofset) {
        this.ofset = ofset;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
